<template>
  <div class="main-container">
    <div class="head">
      <div class="search">
        <el-input v-model="input" placeholder="Please input" size="default" style="width: 100%"/>
        <img src="../../assets/校园安全管理系统/搜索.png">
      </div>
      <DatePicker/>
    </div>
    <div class="data"><Data/></div>
    <div class="foot"><Pagination/></div>
  </div>
</template>

<script lang="js">
import { ref } from 'vue'
import DatePicker from "./DatePicker.vue";
import Data from "./Data.vue";
import Pagination from "./Pagination.vue";
export default {
  name: "Main",
  components:{
    DatePicker,
    Data,
    Pagination
  },
  setup(){
    const input = ref('')
    return {input}
  }
}
</script>
<style scoped>
/*设置头部样式*/
.head{
  display: flex;
  /*height: 50px;*/
  flex-direction: row;
  align-items: center;
  gap:15px;
  margin-top: -10px;
}
.search{
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 65%;
  padding: 5px;
  border-radius: 5px;
  background: #98caf8;
}
.search img{
  width: 30px;
  height: 30px;
  cursor: pointer;
}
/*设置主体样式*/


</style>


